package com.ruoyi.business.service;

import com.ruoyi.bizsys.domain.LoanIou;
import com.ruoyi.bizsys.utils.BizConstants;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

@Slf4j
@Component
public class CollectionReduceOrderService {

    @Autowired
    IRepaymentService iRepaymentService;

    public void repaymentCalOffset(LoanIou loanIou, String reduceSerialNo, String actionType, BigDecimal needAmt) {
        iRepaymentService.repaymentNoLock(loanIou
                ,reduceSerialNo
                , actionType, needAmt, BigDecimal.ZERO, 2);
    }
}
